<%@ page import="com.dao.KtDao" %><%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2024/1/6
  Time: 14:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
    <%
      for(int i=1;i<=9;i++) {
        for (int j = 1; j <= i; j++)
          out.print(j+"*"+i+"="+(i*j)+"&nbsp;&nbsp;");
        out.print("<br>");
      }
      String sid=request.getParameter("sid");
      String sname=request.getParameter("sname");
      String sage=request.getParameter("sage");
      String ssex=request.getParameter("ssex");
      String sql="insert into student(sid,sname,sage,ssex)"
              +" values(" +
              "'"+sid+"','"+sname
              +"','"+sage+"','"+ssex+
              "')";

      out.print(sql);
      if(KtDao.我能执行DDL和DML中的insertdeleteupdate(sql)){
       out.print("增加到数据库成功：");
      }
      else {
          out.print("增加失败");
      }
    %>
  </head>
  <body>
  $END$
  </body>
</html>
